/*
 * HTStringUtilities.h
 *
 *  Created on: Mar 14, 2009
 *      Author: Andrzej Olchawa
 *      mailto: andrzejolchawa@gmail.com
 *      http://www.hardtechnology.org
 *      This is a part of the Armazd project, which is covered by
 *      GNU GPL v2 license.
 */

#ifndef AOSTRINGUTILITIES_H_
#define AOSTRINGUTILITIES_H_

#include <string>
#include <iostream>
#include <sstream>

using namespace std;

#define WHITE_SPACES " \t\r\n"

class HTStringUtilities
{
public:
	HTStringUtilities();
	virtual ~HTStringUtilities();

	static string trimLeft(const string &, const string & = WHITE_SPACES);
	static string trimRight(const string &, const string & = WHITE_SPACES);
	static string trim(const string &, const string & = WHITE_SPACES);
	static bool   contains(const string &, const string &);
};

#endif /* AOSTRINGUTILITIES_H_ */
